package jobs;


import play.Logger;
import play.jobs.Job;
import play.jobs.OnApplicationStart;
import play.test.Fixtures;

@OnApplicationStart
public class Bootstrap extends Job {

	public void doJob() {
		Logger.debug("loading initial db");
		Fixtures.deleteAllModels();
		Fixtures.loadModels("data.yml");
		Logger.debug("initial db loaded");
	}
}
